# 准备工作
# 安装 epel 源
yum install -y epel-release

# 更新 yum
yum -y update

# 安装 bzip2
yum -y install bzip2

## 安装 pypy7.2.0
cd /usr/local

wget https://zzgx.gongxiangcity.com/resourceDownload/software/infra/pypy3.6-v7.2.0-linux64.tar.bz2
or
wget http://192.168.109.224:8092/resourceDownload/software/infra/pypy3.6-v7.2.0-linux64.tar.bz2

# 解压
tar -jxvf pypy3.6-v7.2.0-linux64.tar.bz2
mv pypy3.6-v7.2.0-linux64.tar.bz2 /tmp
mv pypy3.6-v7.2.0-linux64 pypy3.6-v7.2.0

# 创建软连接
cd /usr/local/pypy3.6-v7.2.0/bin
ln -fs /usr/local/pypy3.6-v7.2.0/bin/pypy3 /usr/bin/pypy_7.2.0

# 测试
pypy_7.2.0 -V

# 如果出现错误：error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

whereis libbz2.so.1
cd /usr/lib64/
ll libbz2.so.*
ln -sf /usr/lib64/libbz2.so.1.0.6 /usr/lib64/libbz2.so.1.0
ll libbz2.so.*
pypy_7.2.0 -V

